import request from '@/utils/request'

// APP1.0 - 商品分组
export function getGoodsGroups(data) {
  return request({
    url: '/goods/groups',
    method: 'post',
    data
  })
}

// APP1.0 - 金牌课程商品列表
export function getGoodsLists(data) {
  return request({
    url: '/goods/lists',
    method: 'post',
    data
  })
}

// APP1.0 | 收藏课程
export function favMine(data) {
  return request({
    url: '/mine/fav',
    method: 'post',
    data
  })
}

// APP1.0 | 商品详情
export function getGoodsDetails(data) {
  return request({
    url: '/goods/details',
    method: 'get',
    params: data
  })
}

// APP1.0 | 阶段课详情
export function getGoodsStageDetails(data) {
  return request({
    url: '/goods/details/stage',
    method: 'get',
    params: data
  })
}

/* 01获取保利威加密视频的token */
export function getVideoToken(params) {
  return request({
    url: '/video/token',
    method: 'get',
    params
  })
}
